home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / clib / commodities_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-28  |  2.2 KB  |  85 lines

  1. #ifndef  CLIB_COMMODITIES_PROTOS_H
  2. #define  CLIB_COMMODITIES_PROTOS_H
  3.  
  4. /*
  5. **    $VER: commodities_protos.h 40.1 (17.5.1996)
  6. **
  7. **    C prototypes. For use with 32 bit integers only.
  8. **
  9. **    Copyright © 1999 Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif /* __cplusplus */
  16.  
  17. #ifndef  EXEC_TYPES_H
  18. #include <exec/types.h>
  19. #endif
  20. #ifndef  EXEC_NODES_H
  21. #include <exec/nodes.h>
  22. #endif
  23. #ifndef  LIBRARIES_COMMODITIES_H
  24. #include <libraries/commodities.h>
  25. #endif
  26. #ifndef  DEVICES_INPUTEVENT_H
  27. #include <devices/inputevent.h>
  28. #endif
  29. #ifndef  DEVICES_KEYMAP_H
  30. #include <devices/keymap.h>
  31. #endif
  32. /*--- functions in V36 or higher (Release 2.0) ---*/
  33.  
  34. /*  OBJECT UTILITIES */
  35.  
  36. CxObj *CreateCxObj( ULONG type, LONG arg1, LONG arg2 );
  37. CxObj *CxBroker( CONST struct NewBroker *nb, LONG *error );
  38. LONG ActivateCxObj( CxObj *co, LONG true );
  39. VOID DeleteCxObj( CxObj *co );
  40. VOID DeleteCxObjAll( CxObj *co );
  41. ULONG CxObjType( CONST CxObj *co );
  42. LONG CxObjError( CONST CxObj *co );
  43. VOID ClearCxObjError( CxObj *co );
  44. LONG SetCxObjPri( CxObj *co, LONG pri );
  45.  
  46. /*  OBJECT ATTACHMENT */
  47.  
  48. VOID AttachCxObj( CxObj *headObj, CxObj *co );
  49. VOID EnqueueCxObj( CxObj *headObj, CxObj *co );
  50. VOID InsertCxObj( CxObj *headObj, CxObj *co, CxObj *pred );
  51. VOID RemoveCxObj( CxObj *co );
  52.  
  53. /*  TYPE SPECIFIC */
  54.  
  55. VOID SetTranslate( CxObj *translator, struct InputEvent *events );
  56. VOID SetFilter( CxObj *filter, CONST_STRPTR text );
  57. VOID SetFilterIX( CxObj *filter, CONST IX *ix );
  58. LONG ParseIX( CONST_STRPTR description, IX *ix );
  59.  
  60. /*  COMMON MESSAGE */
  61.  
  62. ULONG CxMsgType( CONST CxMsg *cxm );
  63. APTR CxMsgData( CONST CxMsg *cxm );
  64. LONG CxMsgID( CONST CxMsg *cxm );
  65.  
  66. /*  MESSAGE ROUTING */
  67.  
  68. VOID DivertCxMsg( CxMsg *cxm, CxObj *headObj, CxObj *returnObj );
  69. VOID RouteCxMsg( CxMsg *cxm, CxObj *co );
  70. VOID DisposeCxMsg( CxMsg *cxm );
  71.  
  72. /*  INPUT EVENT HANDLING */
  73.  
  74. BOOL InvertKeyMap( ULONG ansiCode, struct InputEvent *event, CONST struct KeyMap *km );
  75. VOID AddIEvents( struct InputEvent *events );
  76. /*--- functions in V38 or higher (Release 2.1) ---*/
  77. /*  MORE INPUT EVENT HANDLING */
  78. BOOL MatchIX( CONST struct InputEvent *event, CONST IX *ix );
  79.  
  80. #ifdef __cplusplus
  81. }
  82. #endif /* __cplusplus */
  83.  
  84. #endif   /* CLIB_COMMODITIES_PROTOS_H */
  85.